#!usr/bin/env python  
# -*- coding: utf-8 -*-
""" 
@author:Simon
@file: objdemo03.py 
@time: 2018/01/18 
"""
class Animal(object):

    def run(self):
        print('Animal is running...')

    def run_twice(self, animals):
        animals.run()

class Dog(Animal):
    def run(self):
        print("Dog is running")
    def eat(self):
        print('Eating meat')

class Cat(Animal):
    def run(self):
        print("Cat is running")

dog = Dog()
cat = Cat()

# dog.run()
# dog.eat()
# cat.run()

# dog.run_twice(dog)

# print(isinstance(dog, Dog))
# print(isinstance(dog, Animal))

print(type(dog))

print(dir(dog))